package com.mazaiting.auth.enums;

import com.mazaiting.common.core.enums.IBaseEnum;
import lombok.AllArgsConstructor;

/**
 * 授权类型
 *
 * @author mazaiting
 * @create_time 2022/9/26 23:28
 */
@AllArgsConstructor
public enum GrantTypeEnum implements IBaseEnum<String> {
    PASSWORD("password", "密码模式"),
    CAPTCHA("captcha", "图形验证码模式"),
    SMS_CODE("sms_code", "短信验证码模式"),
    REFRESH_TOKEN("refresh_token", "刷新令牌模式"),
    WECHAT("wechat", "微信小程序"),
    ;

    /**
     * 值
     */
    private final String value;

    /**
     * 标签
     */
    private final String label;


    @Override
    public String getValue() {
        return value;
    }

    @Override
    public String getLabel() {
        return label;
    }
}
